import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue';
import HomePage from '../views/About.vue';
import ChoseIMG from '../views/ChoseIMG.vue';
import Info from '../views/Info.vue';
import Allrouter from '../views/Allrouter/Allrouter.vue';

const routes = [
//   {
//     path: '/',
//     name: 'Home',
//     component: Home
//   },
  {
    path: '/',
    name: 'Info',
    component: Info,
    
  },
  {
    path:'/Allrouter',
    name:'Allrouter',
    component:Allrouter,
    children:[
        {
            path: 'HomePage',
            name: 'HomePage',
            component: HomePage
        },
        {
            path: 'ChoseIMG',
            name: 'ChoseIMG',
            component: ChoseIMG
        },
        {
            path: 'Home',
            name: 'Home',
            component: Home
        },
    ]
  },
  {
    path:'/TitleCard',
    name:'TitleCard',
    component:Allrouter,
  }
  
  // 其他路由
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;